//
//  MineAboutUsViewController.m
//  TravelToHelp
//
//  Created by lanou3g on 15/10/31.
//  Copyright © 2015年 冯贵宾. All rights reserved.
//

#import "MineAboutUsViewController.h"

@interface MineAboutUsViewController ()

@end

@implementation MineAboutUsViewController

- (void)viewWillAppear:(BOOL)animated
{
    self.tabBarController.tabBar.hidden = YES;
    self.navigationController.navigationBar.hidden = NO;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    [self setNaviBar];
    [self addSubViews];
}

- (void)setNaviBar
{
     self.navigationItem.title = @"关于我们";
    UIBarButtonItem *leftButton = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"backNew.png"] style:(UIBarButtonItemStylePlain) target:self action:@selector(actionLeftButton:)];
    leftButton.tintColor = [UIColor orangeColor];
    self.navigationItem.leftBarButtonItem = leftButton;
}

- (void)actionLeftButton:(UIBarButtonItem *)leftButton
{
    [self.navigationController popViewControllerAnimated:YES];
}


- (void)addSubViews
{
    NSString *string = @"我们是免费的( ⊙ o ⊙ )啊！\n\n最有趣的手机导游, 最直观的旅游指南, 自助游的好帮手.\n免费为您提供各种旅游景点, 活动信息, 及时向您提供当前热门, 好玩的方向.\n各种美图, 详情信息以最直观的方式向您展示.";
    
    NSString *str = @"使用者行为\n使用本软件时，您同意\n1.不会违反中华人民共和国法律和任何其它可能涉及;\n2.不会中断或干扰网站的安全性，或以其他方式滥用本网站或本网站上提供的任何服务、系统资源、帐户、服务器、与本网站联机或可透过本网站存取的网络或其关联或链接网站；\n3.不会中断或干扰任何其他使用者使用本网站或其关联或连结网站；\n4.不会在本网站上或透过本网站上载、张贴或以其他方式传输任何病毒或其他有害、破坏性或毁坏性档案；\n5.不会尝试未经授权擅自存取本网站或本网站中限制一般存取的部分。";
    
    NSString *str1 = @"郑重声明©\n <本软件所有信息仅只提供参考, 如有不符, 请以当地实际为准>";
    UIImageView *imageBackground = [[UIImageView alloc] initWithFrame:self.view.bounds];
    imageBackground.image = [UIImage imageNamed:@"mine_background.png"];
    [self.view addSubview:imageBackground];
    
    UIView *mengView = [[UIView alloc] initWithFrame:self.view.bounds];
    mengView.backgroundColor = [[UIColor whiteColor] colorWithAlphaComponent:0.7];
    [imageBackground addSubview:mengView];
    
    UILabel *shangLB = [[UILabel alloc] initWithFrame:CGRectMake(15, 20, kScreenWidth - 30, 150)];
    //shangLB.backgroundColor = [UIColor greenColor];
    shangLB.numberOfLines = 0;
    shangLB.font = [UIFont systemFontOfSize:14];
    shangLB.text = string;
    shangLB.textColor = [UIColor orangeColor];
    [mengView addSubview:shangLB];
    
    UILabel *xiaLB = [[UILabel alloc] initWithFrame:CGRectMake(15, 160, kScreenWidth - 30, 300)];
    //xiaLB.backgroundColor = [UIColor cyanColor];
    xiaLB.text = str;
    xiaLB.numberOfLines = 0;
    xiaLB.font = [UIFont systemFontOfSize:14];
    xiaLB.textColor = [UIColor blackColor];
    [mengView addSubview:xiaLB];
    
    UILabel *zhuLB = [[UILabel alloc] initWithFrame:CGRectMake(15, 440, kScreenWidth - 30, 60)];
    //xiaLB.backgroundColor = [UIColor cyanColor];
    zhuLB.text = str1;
    zhuLB.numberOfLines = 0;
    zhuLB.font = [UIFont systemFontOfSize:14];
    zhuLB.textColor = [UIColor redColor];
    [mengView addSubview:zhuLB];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
